﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MyLib.MyBase.MyWeb;
using MyLoad.LoadStatic;
using MyChocCuoi.Setting;
using MyLoad.LoadContent;
using MyLoad.LoadMember;
using MyLib.MyUtility;
namespace MyWeb.Page
{
    /// <summary>
    /// Summary description for Profile
    /// </summary>
    public class Profile : MyASHX
    {
        public override void WriteHTML()
        {
            try
            {
              
                this.PageCode = WebSetting.ListPage.Nothing.ToString();

                LProfile mProfile = new LProfile(this);
                string strProfile = mProfile.GetHTML();

                LHeader mHeader = new LHeader(this);
                mHeader.mHeaderObj.Title = mProfile.mMemberObj.MemberName;
                mHeader.mHeaderObj.Image = mProfile.mMemberObj.GetImage();
                mHeader.mHeaderObj.Description = WebSetting.Description;
                mHeader.mHeaderObj.Link = mProfile.mMemberObj.GetLink();

                Write(mHeader.GetHTML());

                LFaceBook mFaceBook = new LFaceBook(this);
                Write(mFaceBook.GetHTML());

                LBanner mBanner = new LBanner(this);
                Write(mBanner.GetHTML());

                Write(strProfile);

                LFooter mFooter = new LFooter(this);
                Write(mFooter.GetHTML());
            }
            catch (Exception ex)
            {
                mLog.Error(ex);
            }
        }
    }
}